package com.kaifamiao.reflect;

public class Sheep {

    // 类变量
    private static String school = "大肥羊学校" ;
    // 实例变量
    private String name;

    private Sheep() {
        super();
    }

    private Sheep(String name) {
        super();
        this.name = name;
    }

    // 类方法
    private static String welcome( String visitor ) {
        String msg = "热烈欢迎" + visitor + "光临" + Sheep.school;
        System.out.println( msg );
        return msg;
    }

    // 实例方法
    private String getName() {
        return name;
    }

    // 实例方法
    private void setName(String name) {
        this.name = name;
    }
}
